"use strict";
//12.命名空间  namespace 区分类名或方法名称重名 用命名空间区分. 了解
var spacename;
(function (spacename) {
    class A {
        constructor() {
            console.log("class A");
        }
    }
    spacename.A = A;
    function B() { }
    spacename.B = B;
})(spacename || (spacename = {}));
var spname;
(function (spname) {
    class A {
    }
    spname.A = A;
    ;
    function B() { }
    spname.B = B;
})(spname || (spname = {}));
let objectA = new spacename.A(); //调用命名空间内的类 A
spacename.B(); //调用命名空间内的函数
let oA = new spname.A();
spname.B();
